package com.example.win.android_banduyujia.http.request;


import com.example.win.android_banduyujia.http.UrlContext;

import java.util.Map;

/**
 * Created by S3YOGA on 2015/10/14.
 */
public class GetUserInfoRequest extends BaseHttpRequest {
    public static final String URL = UrlContext.Url_ProfileInfo.getContext();

    private String  mAccessToken;

    public GetUserInfoRequest(String accessToken) {
         mAccessToken = accessToken;
    }

    @Override
    protected String toRequestURL() {
        return URL;
    }

    @Override
    protected String toHttpMethod() {
        return HTTP_METHOD_POST;
    }

    @Override
    protected void toHttpRequestParams(Map<String, String> params) {
        params.put("access_token", mAccessToken);
    }
}
